package com.lidong.pdf.listener;

import java.io.File;

import android.support.annotation.MainThread;
import android.support.annotation.WorkerThread;

public interface OnFileListener {
    @MainThread
    void setFile(File file);

    /**
     * 下载进度
     * @param progress
     */
    @WorkerThread
    void onProgress(int progress);
    /**
     * 文件下载失败
     */
    @MainThread
    void onLoadFail(String message);
}